import Foundation

struct SystemInfo {
    static func getTotalMemoryInGB() -> String {
        let totalMemory = ProcessInfo.processInfo.physicalMemory / (1024 * 1024 * 1024)
        return String(totalMemory)
    }

    static func getAvailableDiskSpace() -> String {
        let fileManager = FileManager.default
        if let attributes = try? fileManager.attributesOfFileSystem(forPath: "/") {
            if let freeSpace = attributes[.systemFreeSize] as? NSNumber {
                let freeSpaceInGB = freeSpace.int64Value / (1024 * 1024 * 1024)
                return String(freeSpaceInGB)
            }
        }
        return "Unknown"
    }
}
